package com.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    @JsonProperty("ord_id")
    private Integer OrdId;

    @JsonProperty("ord_title")
    private  String ordTitle;

    //桌号
    @JsonProperty("ord_user_id")
    private Integer ordUserId;

    //总价
    @JsonProperty("ord_price")
    private BigDecimal ordPrice;

    //订单状态 ：已支付 未支付
    @JsonProperty("ord_status")
    private Integer ordStatus;

    @JsonProperty("ord_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date ordTime;

    @JsonProperty("ord_remarks")
    private String ordRemarks;


    List<Detail> detailsList;
}
